package org.mc.response.es;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by luoxf on 2018/6/4.
 */
@ApiModel(value = "项目信息（列表）")
@Data
public class ProjectDTO implements Serializable {
    @ApiModelProperty(value = "项目ID")
    private Long id;

    @ApiModelProperty(value = "项目类型（0.众筹 1.股权）")
    private Integer projectType;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "所属行业")
    private Integer industry;

    @ApiModelProperty(value = "目标金额")
    private BigDecimal targetAmt;

    @ApiModelProperty(value = "项目所属阶段")
    private Integer atStage;

    @ApiModelProperty(value = "项目简介")
    private String productBrief;

    @ApiModelProperty(value = "所在地区")
    private String address;

    @ApiModelProperty(value = "已筹集金额")
    private BigDecimal raisedAmt;

    @ApiModelProperty(value = "支持人数")
    private Long supportNum;

    @ApiModelProperty(value = "收藏总数")
    private Integer collectionNum;

    @ApiModelProperty(value = "当前用户是否收藏(0,未收藏，1已收藏)")
    private Integer isCollect;

    @ApiModelProperty(value = "当前众筹进度")
    private BigDecimal currentProgress;

    @ApiModelProperty(value = "剩余天数")
    private Integer remainDays;

    @ApiModelProperty(value = "众筹是否成功（0.未成功 1.已成功 2.众筹失败）")
    private Integer isSuccess;

    @ApiModelProperty(value = "项目状态(1.未开始 2.进行中 3.已完成)")
    private Integer status;

    @ApiModelProperty(value = "融资类型")
    private Integer financeType;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;


}
